package order.service;

import order.dto.Nutrition;
import order.dto.UserNutrition;
import order.entity.PageResponse;
import user.dto.UserDto;

import java.util.List;

public interface UserNutritionI {
    PageResponse<UserNutrition> getNutrition(int userId,int pageNum);
    Boolean calculateUserNutrition(UserDto userDto);

    Boolean addUserNutrition(UserNutrition userNutrition);
    Boolean updateUserNutrition(UserNutrition userNutrition);

    UserNutrition changeUserNutritionByFoodId(int userId,int foodId);
    UserNutrition changeUserNutritionByNutrition(int userId, Nutrition nutrition);

    UserNutrition getUserNutritionByUserId(int userId);
    List<UserNutrition> getUserNutrition(int userId);
}
